using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebFoundation;
using WebFoundation.Data;
using MHI.InspectionManager.Data; 
using MHI.InspectionManager.Interfaces; 

namespace MHI.InspectionManager.Business
{
	/// <summary>
	/// DevMaintenancedetailTList, table list:dev_maintenancedetail_t 
	/// </summary>
	internal class DevMaintenancedetailTList : BaseWritableEntities<DevMaintenancedetailT>, IDevMaintenancedetailTList
	{
		private DevMaintenancedetailTQueryDAO _queryDAO;
		private DevMaintenancedetailTWritingDAO _writeDAO;

		public DevMaintenancedetailTList(DevMaintenancedetailTQueryDAO queryDao, DevMaintenancedetailTWritingDAO writtingDao) : base(queryDao, writtingDao)
		{
			this._queryDAO = queryDao;
			this._writeDAO = writtingDao;
		}

		/// <summary>
		/// 获取所有DevMaintenancedetailT,table items:dev_maintenancedetail_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevMaintenancedetailT> GetDevMaintenancedetailTAllItems()
		{
			return _queryDAO.GetDevMaintenancedetailTAllItems().ToList();
		}

		/// <summary>
		/// 根据id，获取所有DevMaintenancedetailT,table items:dev_maintenancedetail_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevMaintenancedetailT> GetDevMaintenancedetailTItemsById(int id)
		{
			return _queryDAO.GetDevMaintenancedetailTItemsById(id);
		}

		/// <summary>
		/// 根据jobId，获取所有DevMaintenancedetailT,table items:dev_maintenancedetail_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevMaintenancedetailT> GetDevMaintenancedetailTItemsByJobId(int jobId)
		{
			return _queryDAO.GetDevMaintenancedetailTItemsByJobId(jobId);
		}

		/// <summary>
		/// 增加一行DevMaintenancedetailT,table item:dev_maintenancedetail_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevMaintenancedetailT(DevMaintenancedetailT item)
		{
			return this._writeDAO.AddDevMaintenancedetailT(item);
		}

		/// <summary>
		/// 增加多行DevMaintenancedetailT,table items:dev_maintenancedetail_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevMaintenancedetailTs(DevMaintenancedetailT[] items)
		{
			return this._writeDAO.AddDevMaintenancedetailTs(items);
		}

		/// <summary>
		/// 更新一行DevMaintenancedetailT,table item:dev_maintenancedetail_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevMaintenancedetailT(DevMaintenancedetailT item)
		{
			return this._writeDAO.UpdateDevMaintenancedetailT(item);
		}

		/// <summary>
		///  更新多行DevMaintenancedetailT,table items:dev_maintenancedetail_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevMaintenancedetailTs(DevMaintenancedetailT[] items)
		{
			return this._writeDAO.UpdateDevMaintenancedetailTs(items);
		}

		/// <summary>
		/// 删除一行DevMaintenancedetailT,table item:dev_maintenancedetail_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevMaintenancedetailT(DevMaintenancedetailT item)
		{
			return this._writeDAO.DeleteDevMaintenancedetailT(item);
		}

		/// <summary>
		///  删除多行DevMaintenancedetailT,table items:dev_maintenancedetail_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevMaintenancedetailTs(DevMaintenancedetailT[] items)
		{
			return this._writeDAO.DeleteDevMaintenancedetailTs(items);
		}

		/// <summary>
		///  根据ids，删除多行DevMaintenancedetailT,table entity:dev_maintenancedetail_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevMaintenancedetailTByIds(int[] ids)
		{
			return this._writeDAO.DeleteDevMaintenancedetailTByIds(ids);
		}

	}
}
